<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <script src="jQuery复习/jquery-3.3.1.js"></script>
 </head>
 <body>
    <button>text</button>
	<button>password</button>
	<button>button</button>
    <br>
    <input type="text">
	<input type="password">
	<input type="button" value="button">
 </body>
 <script>
  $("button:first").click(function(){
     $(":text").css({"backgroundColor":"yellow"});
  });
  $("button:eq(1)").click(function(){
     $(":password").css({"backgroundColor":"red"});
  });
  $("button:last").click(function(){
     $(":button").css({"color":"yellow"});
  });
 </script>
</html>
